home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / Include / sys / time.h < prev   
Encoding:
C/C++ Source or Header  |  2001-10-20  |  1.0 KB  |  31 lines

  1. struct tm {
  2.         int tm_sec;     /* seconds after the minute - [0,59] */
  3.         int tm_min;     /* minutes after the hour - [0,59] */
  4.         int tm_hour;    /* hours since midnight - [0,23] */
  5.         int tm_mday;    /* day of the month - [1,31] */
  6.         int tm_mon;     /* months since January - [0,11] */
  7.         int tm_year;    /* years since 1900 */
  8.         int tm_wday;    /* days since Sunday - [0,6] */
  9.         int tm_yday;    /* days since January 1 - [0,365] */
  10.         int tm_isdst;   /* daylight savings time flag */
  11.         };
  12.  
  13. #define CLOCKS_PER_SEC  1000
  14.  
  15. /* Function prototypes */
  16.  
  17. char * asctime(const struct tm *);
  18. char * ctime(const time_t *);
  19. clock_t clock(void);
  20. double difftime(time_t, time_t);
  21. struct tm * gmtime(const time_t *);
  22. struct tm * localtime(const time_t *);
  23. time_t  mktime(struct tm *);
  24. size_t strftime(char *, size_t, const char *,const struct tm *);
  25. /* not implemented under iso-c 
  26.  *     char * _strdate(char *);
  27.  *     char * _strtime(char *);
  28.  */
  29. time_t  time(time_t *);
  30.  
  31.